/*
ont-space - The ontology-based resource metadata repository
Copyright (c) 2006-2008, Information Eng. Research Unit - Univ. of Alcalá
http://www.cc.uah.es/ie
This library is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation; either version 2.1 of the License, or (at your option)
any later version.
This library is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
details.
You should have received a copy of the GNU Lesser General Public License along
with this library; if not, write to the Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */
package org.ontspace.comp;

import org.ontspace.comp.owl.COMPQueryResultImpl;
import com.hp.hpl.jena.ontology.Ontology;
import java.net.URI;
import java.util.List;
import org.ontspace.QueryManager;

/**
 * 
 * Interface for a Competencies Query Manager
 * 
 */
public interface COMPQueryManager extends QueryManager {

    /**
     * Add the ontology asociated with the specified query manager
     * @param ont The ontology to add
     */
    public void addOntologyRef(Ontology ont);

    /**
     * Gets a list with the URIs of the ontologies required by the query manager
     * @return A list whith the USIs of the required ontologies
     */
    public List<URI> getRequiredOntologies();

    /**
     *  Launches a query for  a particular element in the ontology    
     * @param competList the list of cometencies to search
     * @return COMPQueryResultImpl object that have the Set of 
     * MetadataRecordReference
     */
    COMPQueryResultImpl searchByCompetency(List<String> competList);

    /**
     *  Launches a query for  a particular element in the ontology    
     * @param loIdentifier the list to competencies to search
     * @return COMPQueryResultImpl object that have the Set of 
     * MetadataRecordReference
     */
    List<String> getRequiredCompetencies(String loIdentifier);
}
